package com.kayo.specimen.dao;

import com.kayo.specimen.model.Privilege;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PrivilegeMapper {
    public List<Privilege> select(@Param("id") String id,@Param("name") String name,@Param("url") String url,@Param("dependentId") String dependentId,@Param("order")String order);

    public int insert(Privilege... privileges);

    public int update(Privilege... privileges);

    public int delete(String... privilegeId);

    public List<Privilege> getPrivilegeByUser(@Param("userId") String userId);

}
